package JDKProxyByHand;

import DongTaiDaiLi.Customer;
import DongTaiDaiLi.JDKMeipo;
import jingtaidaili.Person;
import sun.misc.ProxyGenerator;

import java.io.FileOutputStream;

/**
 * @program: homeWork
 * @description:
 * @author: hezhiqin
 * @create: 2019-09-28 08:34
 */
public class Test {
    public static void main(String[] args) throws Exception {
//        Person obj = null;
//        try {
//            obj = (Person)new JDKMeipo().getInstance(new Customer());
//            //通过反编译工具可以查看源代码
//
//        } catch (Exception e) {
//            e.printStackTrace();
//        }
//        obj.findLove();


        Person obj = (Person)new GPMeipo().getInstance(new Customer());
        System.out.println(obj.getClass());
        obj.findLove();
    }
}
